package com.welink.cmp.domain.metadata.gateway;

import com.welink.cmp.domain.metadata.Host;

import java.util.List;

/**
 * Host 操作防腐层
 * @author yanwei li create  2024-06-18 11:24
 */
public interface IHostGateway {

    Host saveOrUpdate(Host host);

    Boolean hostStatusChange();

    /**
     * 通过 SN 号批量保存或者更新主机
     */
    Boolean saveOrUpdateBatchBySn(List<Host> hostList);


    /** Query***/

    List<Host> getHostListByName(List<String> name);
    List<Host> getHostListBySn(List<String> sn);
    List<Host> getHostIdListByAssetsId(List<String> assetsId);
}
